package com.ocp.socket.config;

import com.ocp.socket.common.utils.MapWrapperFactory;
import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author : lichong
 * @description :
 * @Date Create in 21:19 2019/1/9
 * @Modified By :配置mybatis
 **/
@Configuration
public class MyBatisConfig {
    @Bean
    public ConfigurationCustomizer mybatisConfigurationCustomizer(){
        //配置mybatis map驼峰转换
        return configuration -> configuration.setObjectWrapperFactory(new MapWrapperFactory());
    }
}
